package com.coldchain.common.feign;

import com.coldchain.common.msg.ObjectRestResponse;
import com.coldchain.common.vo.CarTypeVo;
import com.coldchain.common.vo.MenuVo;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;
import java.util.Map;

/**
 * @ClassName SystemConfigFeign
 * @Description TODO
 * @Author fangliai
 * @Date 2018/9/14 18:25
 * @Vesion 1
**/
@FeignClient(value = "ch-admin",configuration = {})
public interface SystemConfigFeign {

    /**
     * 获取所有已开放开的城市
     * @return
     */
    @RequestMapping(value = "/city/openList")
    public ObjectRestResponse<List<Map<String,Object>>> getOpenCityList();

    /**
     * 获取所有可用的车辆类型
     * @return
     */
    @RequestMapping(value = "/getCarTypeList")
    public ObjectRestResponse<List<CarTypeVo>> getAllType();

    /**
     * 获取车辆祥情
     * @return
     */
    @RequestMapping(value = "/getCarTypeInfo/{id}")
    public ObjectRestResponse<CarTypeVo> getCarTypeInfo(@PathVariable("id") Integer id);

    /**
     * 获取系统配制
     * @return
     */
    @RequestMapping(value = "/getSystemInfo")
    public  ObjectRestResponse<Object> getSystemInfo();

    /**
     * 获取当前用户菜单
     * @return
     */
    @RequestMapping(value = "/getCurrentUserMenu")
    public ObjectRestResponse<List<MenuVo>> getCurrentUserMenu();

}
